package com.shyroke.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.shyroke.entity.FansKey;

public interface FansMapper {
    int deleteByPrimaryKey(FansKey key);

    int insert(FansKey record);

    int insertSelective(FansKey record);

    /**
     * 
     * @param id
     * @return
     */
	List<FansKey> selectByUserId(@Param("userId")Integer id);

	/**
	 * 获取所有关注用户
	 * @param id 粉丝id
	 * @return
	 */
	List<FansKey> selectByFansId(@Param("fansId")Integer id);
}